package com.noahplat.sms.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;


/**
 * 作者：宋彦磊
 * 描述：白名单
 * 时间：2021-03-12
 */
@Data
@Table(name = "tb_whiteip")
public class Whiteip implements Serializable {

    @Id
    private Long id;    //主键ID

    @NotEmpty(message = "ip不能为空")
    @Length(max = 20, message = "ip长度错误")
    @Column(name = "white_ip")
    private String whiteip;   //发送手机号

    @NotEmpty(message = "描述不能为空")
    @Length(max = 255, message = "内容长度错误")
    private String description; //发送内容


}
